package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Comment;
import com.tanhua.model.vo.PageResult;

import java.util.List;

public interface CommentsApi {
    List<Comment> comments(String movementId, Integer commentType, Integer page, Integer pagesize);

    Integer saveComments(Comment comments);

    Integer deleteComments(String movementId, Long userId, Integer commentType);


    Integer addLikeCount(String id);

    Integer deleteLikeCount(String id);

    PageResult findCommentsById(String id, Integer page, Integer pagesize);
}
